import {Message, MessageBox} from 'element-ui';


let showMessageBox = {
    smb(msg,fixMsg,cancelMsg){
        return new Promise(resolve => {
            MessageBox.confirm(msg, '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                Message.success({
                    type: 'success',
                    message: fixMsg,

                })
                resolve(true)
            }).catch(() => {
                Message.error({
                    type: 'info',
                    message: cancelMsg
                });
                resolve(false)
            });
        })


    }


}
export default showMessageBox;